package org.smart4j.chapter2.util;

/**
 * Created by xj on 2016/11/16.
 */
public final class StringUtil {
    /**
     * 判断字符串是否为空
     *
     * @param value
     * @return
     */
    public static boolean isEmpty(String value) {
        if (value == null || "".equals(value)) {
            return true;
        }
        return false;
    }

    /**
     * 判断字符串是否非空
     *
     * @param value
     * @return
     */
    public  static boolean isNotEmpyt(String value) {
        return !isEmpty(value);
    }

}
